import request from '@/utils/request'

// 查询项目管理列表
export function listProject(query) {
  return request({
    url: '/project/testplatfromProject/list',
    method: 'get',
    params: query
  })
}

// 查询项目管理详细
export function getProject(testplatfromProjectId) {
  return request({
    url: '/project/testplatfromProject/' + testplatfromProjectId,
    method: 'get'
  })
}

// 新增项目管理
export function addProject(data) {
  return request({
    url: '/project/testplatfromProject',
    method: 'post',
    data: data
  })
}

// 修改项目管理
export function updateProject(data) {
  return request({
    url: '/project/testplatfromProject',
    method: 'put',
    data: data
  })
}

// 删除项目管理
export function delProject(testplatfromProjectId) {
  return request({
    url: '/project/testplatfromProject/' + testplatfromProjectId,
    method: 'delete'
  })
}

//查询项目下所有人员
export function projectMemberPage(data){
  return request({
    url: '/project/testplatfromProjectmember/list',
    method: 'post',
    data: data
  })
}

//查询所有人员

export function getAlluser(data){
  return request({
    url: '/project/testplatfromProjectmember/userlist',
    method: 'get'
  })
}

//新增项目人员接口
export function addUser(data){
  return request({
    url: '/project/testplatfromProjectmember',
    method: 'post',
    data: data
  })
}
//移除项目人员
export function deletelUser(id) {
  return request({
    url: '/project/testplatfromProjectmember/delete/' + id,
    method: 'delete'
  })
}

//批量移除移除项目人员
export function deletelUserBatch(data) {
  return request({
    url: '/project/testplatfromProjectmember/deleteUsers',
    method: 'post',
    data: data
  })
}